package com.demo.service.impl;

import javax.annotation.Resource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import com.demo.dao.CourseSectionDAO;
import com.demo.dao.CourseSectionSpec;
import com.demo.entity.CourseSection;

public class CourseSectionImpl {

	@Resource
	CourseSectionDAO adminCourseSectionDAO;
	
	public Page<CourseSection> list(Long courseID) {
		Pageable pageable = PageRequest.of(1, 1);
		return adminCourseSectionDAO.findAll(new CourseSectionSpec(), pageable);
	}
}
